package gui.catalogues.products;

import gui.commons.IdText;

import java.util.EventObject;

import javax.swing.JList;

/*
 *	These Event classes seem to be practically a java bean, adding a listening ability
 * */

public class ProductFormEvent extends EventObject {

	private String productCode, productDescription, taxable;
	private IdText it;

	// private

	public ProductFormEvent(Object source) {
		super(source);
	}

	public ProductFormEvent(Object source, String productCode,
			String productDescription, IdText it, String taxable) {
		super(source);
		this.productCode = productCode;
		this.productDescription = productDescription;
		this.it = it;
		this.taxable = taxable;
	}

	/**
	 * @return the productCode
	 */
	public String getProductCode() {
		return productCode;
	}

	/**
	 * @param productCode
	 *            the productCode to set
	 */
	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	/**
	 * @return the productDescription
	 */
	public String getProductDescription() {
		return productDescription;
	}

	/**
	 * @param productDescription
	 *            the productDescription to set
	 */
	public void setProductDescription(String productDescription) {
		this.productDescription = productDescription;
	}

	/**
	 * @return the it
	 */
	public IdText getIt() {
		return it;
	}

	/**
	 * @param it
	 *            the it to set
	 */
	public void setIt(IdText it) {
		this.it = it;
	}

	/**
	 * @return the taxable
	 */
	public String getTaxable() {
		return taxable;
	}

	/**
	 * @param taxable
	 *            the taxable to set
	 */
	public void setTaxable(String taxable) {
		this.taxable = taxable;
	}
}
